#pragma once
#include"StdAfx.h"
#include"TString.h"
#include"TEvent.hpp"
#include<boost/filesystem.hpp>
using namespace boost::filesystem;

class UnZipTool
{
private:
	HZIP zip;
	ZIPENTRY ze;
	TString strDirPath;
public:
	int current;
	int total;
	float percentage;
	TString strProgress;
	UnZipTool();
	void Open(TString strZipSrc, TString _strDirPath, TString pwd = "");
	void Open(LPVOID pBuffer, size_t sz, TString _strDirPath, TString pwd = "");
	bool GetOne();
	void MoveFirst();
	void Close();
};

